home *** CD-ROM | disk | FTP | other *** search
/ Day Cry / Day Cry CD.bin / oh_towns / ugoku / src.lzh / MOVREC / MRTRANS.ASM < prev    next >
Assembly Source File  |  1994-06-01  |  804b  |  58 lines

  1. ;        MOVREC vram ü¿ buffer
  2. ;        1993 3/5  Hiroshi TODA
  3.  
  4.     .386p
  5.  
  6. cseg    segment    dword public use32 'CODE'
  7.     assume    cs:cseg,ds:cseg
  8.  
  9.     public    movrec_trans00
  10.     db    'movrec_trans00',14
  11. movrec_trans00    proc    near
  12.     push    ebp
  13.     mov    ebp,esp
  14.     push    esi
  15.     push    edi
  16.     push    ebx
  17.     mov    edi,[ebp+8]
  18.     mov    ax,10ch
  19.     mov    fs,ax
  20.     mov    esi,0
  21.     xor    ecx,ecx
  22.  
  23.     mov    al,30
  24.     mov    edx,0440h
  25.     out    dx,al
  26. #vd00:    mov    edx,0442h
  27.     in    ax,dx
  28.     test    eax,0400h
  29.     jne    short #vd00
  30.  
  31.     mov    ebx,eax
  32.  
  33. #vd01:    mov    edx,0442h
  34.     in    ax,dx
  35.     test    eax,0400h
  36.     je    short #vd01
  37.  
  38.     test    ebx,0800h
  39.     jne    short #vd00
  40.  
  41.     mov    edx,240
  42. #vd08:    mov    cl,160            ; vram ô]æù
  43.     rep    movs dword ptr [edi],fs:[esi]
  44.     add    esi,1024*2-640
  45.     dec    edx
  46.     jne    short #vd08
  47.  
  48.     pop    ebx
  49.     pop    edi
  50.     pop    esi
  51.     mov    esp,ebp
  52.     pop    ebp
  53.     ret
  54. movrec_trans00    endp
  55.  
  56. cseg    ends
  57.     end
  58.